package com.bifrost.service;

import com.bifrost.common.model.ResultModel;

/**
 * @author rangjf
 * @date 2017/10/19
 */
public interface SmsService {
    /**
     * 发送验证码
     *
     * @param phone
     * @return
     */
    public ResultModel sendMessage(String phone);

    /**
     * 校验验证码
     *
     * @param phone
     * @param msg
     * @return
     */
    public Boolean checkMessage(String phone, String msg);

    /**
     * 发送客户短信
     *
     * @param phone
     * @param msg
     * @return
     */
    public String sendCustomerMessage(String phone, String msg);

    /**
     * 统计成功发送短信次数
     *
     * @return
     */
    public Long countTimes();
}
